import React, { Component } from 'react'
// import Taro from '@tarojs/taro'
import { View, ScrollView } from '@tarojs/components'
import Flow from '../Flow'

import './index.scss'

export default class Index extends Component {

  render() {
    const {goods} = this.props;
    return <ScrollView
      scrollY
      scrollWithAnimation
    >
      <View className='goods-box'>
        {goods&&goods.map( (item, index) => (<View
          key={index}
          className='goods'
        >
          <Flow {...item} />
        </View>))}
      </View>
    </ScrollView>
  }

}
